<include file='Admin/Tpl/Public/nav.html' />	
<style>
	.tr:nth-of-type(even){
		background:#D8F6FF;
	}
</style>
<!-- BEGIN PAGE CONTENT -->
<div class="page-content">
    
    <div class="container-fluid">
        <!-- Begin page heading -->
        <h1 class="page-heading">Team In　<small>修改类型</small></h1>
        <!-- End page heading -->
        
        <!-- Begin breadcrumb -->
        <ol class="breadcrumb default square rsaquo sm">
            <li><a href="index.html"><i class="fa fa-home"></i></a></li>
            <li><a href="#fakelink">Team In</a></li>
            <li class="active">通讯录添加</li>
        </ol>
        <!-- End breadcrumb -->					
        
        <!-- Begin Basic color table -->
        <a href="__URL__/leave_type" class="btn btn-danger">返回类型列表</a>

        <div class="the-box full no-border">
            <div class="table-responsive">
                <div class="the-box">
                    <form id="ExampleBootstrapValidationForm" method="post" action="__URL__/update_type_act" class="form-horizontal" enctype="multipart/form-data">
                        <input type="hidden" name="type_id" value="{$rs.type_id}" />
                        <fieldset>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">类型名称 <span style="color:red">*</span></label>
                                <div class="col-lg-5">
                                    <input type="text" class="form-control must" id="type_name" type="text" name="type_name" value="{$rs.type_name}" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">请假证明 <span style="color:red">*</span></label>
                                <div class="col-lg-5">										
                                	<input  class="form-control must" style=" width:16px; display:inline; line-height:4px;" id="type_prove" type="radio" name="type_prove" value="0" checked="checked" />不需要
                                    <input  class="form-control must" style=" width:16px; display:inline; line-height:4px;" id="type_prove" type="radio" name="type_prove" value="1" />需要&nbsp;&nbsp;
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">类型图片</label>
                                <div class="col-lg-5">										
                                    <input id="portrait"  class="form-control"  type="file" name="type_image" />
                                </div>
                            </div>
                        </fieldset>					

                        <div class="form-group">
                            <div class="col-lg-9 col-lg-offset-3">									
                                <input class="btn btn-primary" id="submit"  type="submit" value="提交" />
                            </div>
                        </div>
                    </form>
                </div>

            </div><!-- /.table-responsive -->
            

        </div><!-- /.the-box -->
        <script>
        $('[name="type_prove"]').each(function(index, element) {
            if($(this).val()=='{$rs.type_prove}')
				$(this).attr("checked",true);
        });
        </script>

					
					
					 